package com.itc.emun.demo;

/**
 * @Auther: wangyanwei
 * @Date: 2018/8/22 09:34
 * @Description:
 */
public enum EnumDemo3 {

    SPRING(1,"春天","春天真美丽"),SUMMER(2,"夏天","夏天在热了"),FALL(3,"秋天","秋高气爽"),WINTER(4,"冬天","寒冬腊月");
    private final String name;
    private final Integer value;
    private final String desc;

    private EnumDemo3(Integer value,String name,String desc)
    {
        this.name = name;
        this.value=value;
        this.desc=desc;
    }

    public String getName() {
        return name;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static void getAllName(){
        EnumDemo3[] values = EnumDemo3.values();
        for (EnumDemo3 value:values){
            System.out.println(value.getName());
        }
    }
}
